#!/usr/bin/python
# -*- coding: UTF-8 -*-
'''
Created on 2017年8月21日

@author: dayu
'''


from Tkinter import *

master = Tk()
var = IntVar()

# Label(master, text="First").grid(sticky=E)
# Label(master, text="Second").grid(sticky=E)

# e1 = Entry(master)
# e2 = Entry(master)

# e1.grid(row=0, column=1)
# e2.grid(row=1, column=1)

i00 = Spinbox(master).grid(row = 0, column = 0)
i01 = Spinbox(master).grid(row = 0, column = 1)
i02 = Spinbox(master).grid(row = 0, column = 2)
i03 = Spinbox(master).grid(row = 0, column = 3)
i04 = Spinbox(master).grid(row = 0, column = 4)
i05 = Spinbox(master).grid(row = 0, column = 5)
i06 = Spinbox(master).grid(row = 0, column = 6)
i07 = Spinbox(master).grid(row = 0, column = 7)
i08 = Spinbox(master).grid(row = 0, column = 8)
i09 = Spinbox(master).grid(row = 1, column = 0)
i10 = Spinbox(master).grid(row = 1, column = 1)
i11 = Spinbox(master).grid(row = 1, column = 2)
i12 = Spinbox(master).grid(row = 1, column = 3)
i13 = Spinbox(master).grid(row = 1, column = 4)
i14 = Spinbox(master).grid(row = 1, column = 5)
i15 = Spinbox(master).grid(row = 1, column = 6)
i16 = Spinbox(master).grid(row = 1, column = 7)
i17 = Spinbox(master).grid(row = 1, column = 8)
i18 = Spinbox(master).grid(row = 2, column = 0)
i19 = Spinbox(master).grid(row = 2, column = 1)
i20 = Spinbox(master).grid(row = 2, column = 2)
i21 = Spinbox(master).grid(row = 2, column = 3)
i22 = Spinbox(master).grid(row = 2, column = 4)
i23 = Spinbox(master).grid(row = 2, column = 5)
i24 = Spinbox(master).grid(row = 2, column = 6)
i25 = Spinbox(master).grid(row = 2, column = 7)
i26 = Spinbox(master).grid(row = 2, column = 8)
i27 = Spinbox(master).grid(row = 3, column = 0)
i28 = Spinbox(master).grid(row = 3, column = 1)
i29 = Spinbox(master).grid(row = 3, column = 2)
i30 = Spinbox(master).grid(row = 3, column = 3)
i31 = Spinbox(master).grid(row = 3, column = 4)
i32 = Spinbox(master).grid(row = 3, column = 5)
i33 = Spinbox(master).grid(row = 3, column = 6)
i34 = Spinbox(master).grid(row = 3, column = 7)
i35 = Spinbox(master).grid(row = 3, column = 8)
i36 = Spinbox(master).grid(row = 4, column = 0)
i37 = Spinbox(master).grid(row = 4, column = 1)
i38 = Spinbox(master).grid(row = 4, column = 2)
i39 = Spinbox(master).grid(row = 4, column = 3)
i40 = Spinbox(master).grid(row = 4, column = 4)
i41 = Spinbox(master).grid(row = 4, column = 5)
i42 = Spinbox(master).grid(row = 4, column = 6)
i43 = Spinbox(master).grid(row = 4, column = 7)
i44 = Spinbox(master).grid(row = 4, column = 8)
i45 = Spinbox(master).grid(row = 5, column = 0)
i46 = Spinbox(master).grid(row = 5, column = 1)
i47 = Spinbox(master).grid(row = 5, column = 2)
i48 = Spinbox(master).grid(row = 5, column = 3)
i49 = Spinbox(master).grid(row = 5, column = 4)
i50 = Spinbox(master).grid(row = 5, column = 5)
i51 = Spinbox(master).grid(row = 5, column = 6)
i52 = Spinbox(master).grid(row = 5, column = 7)
i53 = Spinbox(master).grid(row = 5, column = 8)
i54 = Spinbox(master).grid(row = 6, column = 0)
i55 = Spinbox(master).grid(row = 6, column = 1)
i56 = Spinbox(master).grid(row = 6, column = 2)
i57 = Spinbox(master).grid(row = 6, column = 3)
i58 = Spinbox(master).grid(row = 6, column = 4)
i59 = Spinbox(master).grid(row = 6, column = 5)
i60 = Spinbox(master).grid(row = 6, column = 6)
i61 = Spinbox(master).grid(row = 6, column = 7)
i62 = Spinbox(master).grid(row = 6, column = 8)
i63 = Spinbox(master).grid(row = 7, column = 0)
i64 = Spinbox(master).grid(row = 7, column = 1)
i65 = Spinbox(master).grid(row = 7, column = 2)
i66 = Spinbox(master).grid(row = 7, column = 3)
i67 = Spinbox(master).grid(row = 7, column = 4)
i68 = Spinbox(master).grid(row = 7, column = 5)
i69 = Spinbox(master).grid(row = 7, column = 6)
i70 = Spinbox(master).grid(row = 7, column = 7)
i71 = Spinbox(master).grid(row = 7, column = 8)
i72 = Spinbox(master).grid(row = 8, column = 0)
i73 = Spinbox(master).grid(row = 8, column = 1)
i74 = Spinbox(master).grid(row = 8, column = 2)
i75 = Spinbox(master).grid(row = 8, column = 3)
i76 = Spinbox(master).grid(row = 8, column = 4)
i77 = Spinbox(master).grid(row = 8, column = 5)
i78 = Spinbox(master).grid(row = 8, column = 6)
i79 = Spinbox(master).grid(row = 8, column = 7)
i80 = Spinbox(master).grid(row = 8, column = 8)
heckbutton = Checkbutton(master, text='Preserve aspect', variable=var)
# checkbutton.grid(columnspan=2, sticky=W)

# photo = PhotoImage(file='tou.gif')
# label = Label(image=photo)
# label.image = photo
# label.grid(row=0, column=2, columnspan=2, rowspan=2, sticky=W+E+N+S, padx=5, pady=5)

# button1 = Button(master, text='Zoom in')
# button1.grid(row=2, column=2)

# button2 = Button(master, text='Zoom out')
# button2.grid(row=2, column=3)

mainloop()